home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 04 Pathfinding and Movement / 02 Surasmith / readme.txt
Encoding:
Text File  |  2001-09-17  |  2.7 KB  |  67 lines

  1. ARTICLE: Preprocessed Solution For Open Terrain Navigation
  2. AUTHOR: Smith Surasmith
  3. EMAIL: ssurasmith@angelstudios.com
  4.  
  5. DIRECTORY TREE:
  6. -sample    
  7.     -solution
  8.         -solution.cpp
  9.         -solution.dsp
  10.         -solution.dsw
  11.     -test
  12.         -sample.csv
  13.         -samplei.csv
  14.         -solution.csv
  15.         -solution.exe
  16.     -readme.txt
  17.  
  18. SOLUTION DIRECTORY:
  19. 1. Contains the source code and build instructions originally written in VC++5.0.
  20. 2. The solution.cpp contains code for reading and writing sample files.
  21. 3. It contains an implementation of Dijkstra's Algorithm.
  22. 4. It also contains the algorithm for creating the solution table from connectivity data.
  23. 5. It should compile fine with VC++5.0 or later.
  24. 6. Any C++ compiler should be okay to compile the code.
  25.  
  26.  
  27. TEST DIRECTORY:
  28.  
  29. 1. CSV files are comma separated values type fields that is written out by Microsoft Excel.  It is a text file, but can also be loaded by the Excel application.
  30.  
  31. 2. The examples here are the examples shown in the article.
  32.  
  33. 3. sample.csv
  34. 3.1. The first field defines the number of nodes in the graph.
  35. 3.2. The second field defines the starting cound of the nodes. Forexample, 1 means that the first node is index 1, and 0 means that the first node is index 0.  This is so the examples matches those in the article.
  36. 3.3. Each line after is a list of outgoing edges.  The first value is the number of outgoing edges.  Each entry is the node number destination and the cost.  For example, 2[109] means that the edge goes to node 2, and the cost of the edge is 109.
  37.  
  38. 4. samplei.csv
  39. 4.1. This is an intermediate file put out by the executable showing the connectivity table.
  40. 4.2. The first field is the number of nodes in the table.
  41. 4.3. The structure of the table is an n-squared table of connectivity and costs
  42. 4.4. -1 is the value for non existing connections.
  43. 4.5. This is to resemble the connectivity table in the article.
  44.  
  45. 5. solution.csv
  46. 5.1. This is the solution table output by the executable.
  47. 5.2. The first field is the number of nodes in the table.
  48. 5.3. The rest is an n-squared table of path solutions as explained in the article.
  49.  
  50. 6. solution.exe
  51. 6.1. Is the executable to read in sample.csv and generate the solution.csv.
  52. 6.2. It is a dos shell application.
  53. 6.3. help with usage, type "solution -h"
  54. 6.4. Usage is "solution -ih <source> <destination>"
  55. 6.5. -i means for the application to write out an intermediate file. The intermediate 
  56. file takes the file name without the extension and appends i.csv after it.  For example,
  57. sample.csv produces samplei.csv intermediate file.
  58. 6.6. -h prints out usage instructions.
  59. 6.7. <source> file should be in the format like sample.csv
  60. 6.8. <destination> file will be in format like solution.csv
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.